﻿using Azure.Core;
using FieldTools.Client.Entity.MyQQ;
using FieldTools.Util;
using FieldTools.Util.Helper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FieldTools.Client.Entity.Model
{
	/// <summary>
	/// 自定义http脚本api
	/// </summary>
    public class CustomApi: CustomScript
    {
		private string? path;
		/// <summary>
		/// 路由地址
		/// </summary>
		public string? Path
		{
			get { return path; }
			set { path = value; }
		}

		private bool isEnable;
		/// <summary>
		/// 是否启用
		/// </summary>
		public bool IsEnable
		{
			get { return isEnable; }
			set { isEnable = value; }
		}

        private RequestType requestType;
        /// <summary>
        /// 请求类型
        /// </summary>
        public RequestType RequestType
        {
            get { return requestType; }
            set { requestType = value; }
        }

        private string remark = string.Empty;
		/// <summary>
		/// 备注
		/// </summary>
		public string Remark
		{
			get { return remark; }
			set { remark = value; }
		}
	}

	/// <summary>
	/// 请求类型
	/// </summary>
	public enum RequestType
	{
		/// <summary>
		/// get
		/// </summary>
		GET = 0,
		/// <summary>
		/// post
		/// </summary>
		POST = 1
	}
}
